package com.wqr.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

public class Product implements Serializable {
    /**
     * 货物序号
     */
    private Integer productId;

    /**
     * 货物名称
     */
    private String productName;

    /**
     * 货物数量
     */
    private Integer productNumber;

    /**
     * 货物价格
     */
    private BigDecimal productPrice;

    /**
     * 货物图片
     */
    private String productPicture;

    /**
     * 现价
     */
    private BigDecimal nowPrice;

    /**
     * 负责人Id
     */
    private Integer userId;

    /**
     * 店铺Id
     */
    private Integer storeId;

    private static final long serialVersionUID = 1L;

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public Integer getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(Integer productNumber) {
        this.productNumber = productNumber;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductPicture() {
        return productPicture;
    }

    public void setProductPicture(String productPicture) {
        this.productPicture = productPicture == null ? null : productPicture.trim();
    }

    public BigDecimal getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        this.nowPrice = nowPrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", productNumber=").append(productNumber);
        sb.append(", productPrice=").append(productPrice);
        sb.append(", productPicture=").append(productPicture);
        sb.append(", nowPrice=").append(nowPrice);
        sb.append(", userId=").append(userId);
        sb.append(", storeId=").append(storeId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}